add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories(
    ${CMAKE_SOURCE_DIR}
    ${CMAKE_BINARY_DIR}
    ${KDE4_INCLUDES}
)

set(engine_nullbyte_SRCS nullbyte-engine.cpp postitem.cpp)

kde4_add_plugin(plasma_engine_nullbyte ${engine_nullbyte_SRCS})
target_link_libraries(plasma_engine_nullbyte
    qjson
    ${QT_QTNETWORK_LIBRARY}
    ${KDE4_KDECORE_LIBS}
    ${KDE4_PLASMA_LIBS})

install(TARGETS plasma_engine_nullbyte
    DESTINATION ${PLUGIN_INSTALL_DIR})

install(FILES plasma-engine-nullbyte.desktop
    DESTINATION ${SERVICES_INSTALL_DIR})